package com.hjqjl.whdemo.feature.feature0.ui.activity.surfaceview;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.hjqjl.whdemo.base.BaseActivity;
import com.hjqjl.whdemo.databinding.ActivitySurfaceViewBinding;

public class SurfaceViewActivity extends BaseActivity {
    public static void start(Context context) {
        Intent starter = new Intent(context, SurfaceViewActivity.class);
        context.startActivity(starter);
    }

    private ActivitySurfaceViewBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivitySurfaceViewBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        binding.btn1.setOnClickListener(v -> SurfaceView1Activity.start(pActivity));
        binding.btn2.setOnClickListener(v -> SurfaceView2Activity.start(pActivity));
    }
}